package com.cedifie.lendapp.ui.loan.impl

import com.cedifie.lendapp.http.ApiService
import com.cedifie.lendapp.http.ApiService.addCommonParams
import com.cedifie.lendapp.http.HttpHelper
import com.cedifie.lendapp.http.IHttpCallback
import org.json.JSONObject

/**
 * Cedifie
 * @Author wwdeng
 * @CreateTime: 2024/6/17 13:45
 * @Annotation：贷款申请 Model 实现
 */
class CedLoanApplyModelImpl {

    /**
     * 获取贷款额度
     */
    fun loadCedApplyDataAction(params: JSONObject,callBack: IHttpCallback){
        val httpUrl = ApiService.getHttpUrl(ApiService.API_URL.CED_API_COMMON_URL)
        HttpHelper.postCedAction(httpUrl,params,callBack)
    }

    /**
     * 创建订单
     */
    fun onCedCreateApplyOrderAction(params: JSONObject,callBack: IHttpCallback){
        val httpUrl = ApiService.getHttpUrl(ApiService.API_URL.CED_API_COMMON_URL)
        HttpHelper.postCedAction(httpUrl,params,callBack)
    }
}